package com.fmy.mcsecurity.token.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName Storage
 * @Description TODO 储存实体
 * @createTime 2020/4/24 10:15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class RefreshStorage implements Serializable {

    /**
     * 用户id
     */
    private String userId;

    /**
     * 登录客户端
     */
    private String client;

    /**
     * 登录方式
     */
    private String type;

    public RefreshStorage() {
    }

    public RefreshStorage(String userId, String client, String type) {
        this.userId = userId;
        this.client = client;
        this.type = type;
    }
}
